﻿//    Miracinera - an adventure game (player).
//    Copyright (C) [2010]  [Christian Syska]
//
//    This file is part of Miracinera.
//
//    Miracinera is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    Miracinera is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with Miracinera.  If not, see <http://www.gnu.org/licenses/>.
//
//    Further information on the Miracinera project can be found on http://code.google.com/p/miracinera/
//    If there are any questions, you can contact me via email: Belua85@gmail.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using Miracinera.Globals;

namespace Miracinera.Oberflaeche
{
	/// <summary>
	/// Interaktionslogik für MainMenu.xaml
	/// </summary>
	public partial class MainMenu : UserControl
	{
		public MainMenu()
		{
			InitializeComponent();
		}

		private void pbOptions_Click(object sender, RoutedEventArgs e)
		{
			App._MainWindow.Flip(new Options());
		}

		private void pbQuit_Click(object sender, RoutedEventArgs e)
		{
			App._MainWindow.Close();
		}

		private void pbNewGame_Click(object sender, RoutedEventArgs e)
		{
			App._GameControl = new GameControl();
			App._MainWindow.Flip(App._GameControl);
		}
	}
}
